package controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.ui.Model;

@Controller
public class createInvoiceController {
    @RequestMapping("/createInvoice")
    public String createInvoice (@RequestParam(value="name",required = false, defaultValue = "World") String name, Model model) {
        model.addAttribute("name", name);
        return "createInvoice";
    }
}